<!-- html(), text() 함수 테스트 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="/jQuery_class_stu/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#showBtn").on("click", function(){
		//text()/html()의 차이
		var txt = $("#dataLayer").text();
		var html = $("#dataLayer").html();
		alert(txt);
		alert(html);
	});
	$("#txtBtn").on("click", function(){
		$("#showLayer").text("text 입력 버튼 클릭됨");
	});
	$("#htmlBtn").on("click", function(){
		$("#showLayer").html("<b>html 입력 버튼 클릭됨</b>");
		//노드.innerHTML = "<b>xxx</b>";
	});
});
</script>
</head>
<body>
<div id="dataLayer">
	<font size=2 color="#FFDD33">안녕하세요</font>
	<b>반갑습니다.</b>
</div>
<div id="showLayer"></div>
<input type="button" value="조회버튼" id="showBtn">
<input type="button" value="text입력" id="txtBtn">
<input type="button" value="html입력" id="htmlBtn"><br>

</body>
</html>
